<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2022/12/8
 * Time: 14:06
 */

namespace app\controller\app;
use app\model\sys\SysConfig AS model;

class Config extends Base
{
    public function list(){
        $config = [];
        $select = model::select()->toArray();
        foreach ($select AS $key => $value){
            $config[$value['param_key']] = $value['param_value'];
        }
        return $this->msg($config);
    }
}